package po;

import java.io.Serializable;

@SuppressWarnings("serial")
public class CoursePublishPO implements Serializable {

	/**
	 * @param args
	 */
	String courseID;
	String teacher;
	String time;
	String location;
	
	public CoursePublishPO(String cID,String tea,String t,String l){
		courseID = cID;
		teacher = tea;
		time = t;
		location = l;
	}
	public String getCourseID(){
		return courseID;
	}
	public String getTeacher(){
		return teacher;
	}
	public String getTime(){
		return time;
	}
	public String getLocation(){
		return location;
	}
	public String getCollegeID(){
		return courseID.substring(0,3);
	}
	@Override
	public String toString() {
		return "CoursePublishPO:\r\ncourseID=" + courseID + "\r\nteacher=" + teacher
				+ "\r\ntime=" + time + "\r\nlocation=" + location;
	}
}
